package cyy.example.com.facotry.model.api.response;

import cyy.example.com.facotry.model.api.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ChenYiYao on 2017/12/4.
 * TODO: 可删除，无用。但还有其它模块引用，其引用的模块也不再需要。
 */

public class ConfigEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 8025602571715167605L;
    /**
     * body : {"personRoles":[{"note":"0","roleId":1,"roleName":"企业人员"},{"note":"1","roleId":2,"roleName":"巡查人员"},{"note":"1","roleId":3,"roleName":"运维人员"},{"note":"1","roleId":4,"roleName":"执法人员"},{"note":"0","roleId":5,"roleName":"数据管理人员"},{"note":"0","roleId":6,"roleName":"政府管理人员"},{"note":"0","roleId":7,"roleName":"其他人员"},{"note":"0","roleId":8,"roleName":"超级管理员"},{"note":"0","roleId":9,"roleName":"运维组长"}],"personRefreshTime":120000,"realTimeDataRefreshTime":30000,"taskTypes":[{"taskTypeId":"A","taskTypeName":"现场巡查"},{"taskTypeId":"B","taskTypeName":"运维巡查"},{"taskTypeId":"C","taskTypeName":"质量控制"},{"taskTypeId":"D","taskTypeName":"应急响应"},{"taskTypeId":"E","taskTypeName":"监察执法"}],"personalRefreshTime":120000,"videoUploadSizeLimit":150}
     */

    private BodyBean body;

    public BodyBean getBody() {
        return body;
    }

    public void setBody(BodyBean body) {
        this.body = body;
    }

    public static class BodyBean implements Serializable {
        /**
         * personRoles : [{"note":"0","roleId":1,"roleName":"企业人员"},{"note":"1","roleId":2,"roleName":"巡查人员"},{"note":"1","roleId":3,"roleName":"运维人员"},{"note":"1","roleId":4,"roleName":"执法人员"},{"note":"0","roleId":5,"roleName":"数据管理人员"},{"note":"0","roleId":6,"roleName":"政府管理人员"},{"note":"0","roleId":7,"roleName":"其他人员"},{"note":"0","roleId":8,"roleName":"超级管理员"},{"note":"0","roleId":9,"roleName":"运维组长"}]
         * personRefreshTime : 120000
         * realTimeDataRefreshTime : 30000
         * taskTypes : [{"taskTypeId":"A","taskTypeName":"现场巡查"},{"taskTypeId":"B","taskTypeName":"运维巡查"},{"taskTypeId":"C","taskTypeName":"质量控制"},{"taskTypeId":"D","taskTypeName":"应急响应"},{"taskTypeId":"E","taskTypeName":"监察执法"}]
         * personalRefreshTime : 120000
         * videoUploadSizeLimit : 150
         */

        private String personRefreshTime;
        private String realTimeDataRefreshTime;
        private String personalRefreshTime;
        private String videoUploadSizeLimit;
        private List<PersonRolesBean> personRoles;
        private List<TaskTypesBean> taskTypes;

        public String getPersonRefreshTime() {
            return personRefreshTime;
        }

        public void setPersonRefreshTime(String personRefreshTime) {
            this.personRefreshTime = personRefreshTime;
        }

        public String getRealTimeDataRefreshTime() {
            return realTimeDataRefreshTime;
        }

        public void setRealTimeDataRefreshTime(String realTimeDataRefreshTime) {
            this.realTimeDataRefreshTime = realTimeDataRefreshTime;
        }

        public String getPersonalRefreshTime() {
            return personalRefreshTime;
        }

        public void setPersonalRefreshTime(String personalRefreshTime) {
            this.personalRefreshTime = personalRefreshTime;
        }

        public String getVideoUploadSizeLimit() {
            return videoUploadSizeLimit;
        }

        public void setVideoUploadSizeLimit(String videoUploadSizeLimit) {
            this.videoUploadSizeLimit = videoUploadSizeLimit;
        }

        public List<PersonRolesBean> getPersonRoles() {
            return personRoles;
        }

        public void setPersonRoles(List<PersonRolesBean> personRoles) {
            this.personRoles = personRoles;
        }

        public List<TaskTypesBean> getTaskTypes() {
            return taskTypes;
        }

        public void setTaskTypes(List<TaskTypesBean> taskTypes) {
            this.taskTypes = taskTypes;
        }

        public static class PersonRolesBean implements Serializable {
            private static final long serialVersionUID = 1788783870161898450L;
            /**
             * note : 0
             * roleId : 1
             * roleName : 企业人员
             */

            private String note;
            private String roleId;
            private String roleName;

            public String getNote() {
                return note;
            }

            public void setNote(String note) {
                this.note = note;
            }

            public String getRoleId() {
                return roleId;
            }

            public void setRoleId(String roleId) {
                this.roleId = roleId;
            }

            public String getRoleName() {
                return roleName;
            }

            public void setRoleName(String roleName) {
                this.roleName = roleName;
            }
        }

        public static class TaskTypesBean implements Serializable {
            /**
             * taskTypeId : A
             * taskTypeName : 现场巡查
             */

            private String taskTypeId;
            private String taskTypeName;

            public String getTaskTypeId() {
                return taskTypeId;
            }

            public void setTaskTypeId(String taskTypeId) {
                this.taskTypeId = taskTypeId;
            }

            public String getTaskTypeName() {
                return taskTypeName;
            }

            public void setTaskTypeName(String taskTypeName) {
                this.taskTypeName = taskTypeName;
            }
        }
    }
}
